﻿using HandyControlDemo.Model;
using System.Windows;

namespace HandyControlDemo.UserControl
{
    /// <summary>
    /// PropertyGrid.xaml 的交互逻辑
    /// </summary>
    public partial class PropertyGrid
    {
        public PropertyGrid()
        {
            InitializeComponent();

            //DemoModel = new PropertyGridDemoModel
            //{
            //    String = "TestString",
            //    Enum = Gender.Female,
            //    Boolean = true,
            //    Integer = 98,
            //    VerticalAlignment = VerticalAlignment.Stretch
            //};

            //DataContext = this;
        }

        //public static readonly DependencyProperty DemoModelProperty = DependencyProperty.Register(
        //    "DemoModel", typeof(PropertyGridDemoModel), typeof(PropertyGrid), new PropertyMetadata(default(PropertyGridDemoModel)));

        //public PropertyGridDemoModel DemoModel
        //{
        //    get => (PropertyGridDemoModel)GetValue(DemoModelProperty);
        //    set => SetValue(DemoModelProperty, value);
        //}
    }
}
